Model-Based Systems Engineering and Control System Development via Virtual Hardware-in-the-Loop Simulation

نویسندگان

  • L. Michaels
  • S. Pagerit
  • A. Rousseau
  • P. Sharer
  • S. Halbach
  • R. Vijayagopal
  • M. Kropinski
  • G. Matthews
  • M. Kao
  • O. Matthews
  • M. Steele
  • A. Will
چکیده

Model-based control system design improves quality, shortens development time, lowers engineering cost, and reduces rework. Evaluating a control system's performance, functionality, and robustness in a simulation environment avoids the time and expense of developing hardware and software for each design iteration. Simulating the performance of a design can be straightforward (though sometimes tedious, depending on the complexity of the system being developed) with mathematical models for the hardware components of the system (plant models) and control algorithms for embedded controllers. This paper describes a software tool and a methodology that not only allows a complete system simulation to be performed early in the design cycle, but also greatly facilitates the construction of the model by automatically connecting the components and subsystems that comprise it. A key element of this technique is the software-in-the-loop (SIL) capability, which permits compiled legacy source code to be incorporated into the simulation environment, thus allowing the inclusion of algorithm functionality for which no simulation models exist. With this approach, the control system can be developed early in the vehicle or powertrain design cycle, incorporating plant models, algorithm models, existing controller code, and architectural constructs that greatly expedite the creation of a system simulation that can be used for algorithm development, testing, and validation. An application of this methodology at General Motors Powertrain is described in detail. INTRODUCTION MODEL-BASED DESIGN Model-based control system design has been widely accepted in the automotive industry. Designing and studying the performance of a control system in the virtual environment of a computer system simulation: • Provides a math-based environment for thorough multidisciplinary integration and testing prior to hardware builds. • Permits sorting technologies quickly to reduce hardware build iterations. • Promotes parallel and integrated virtual development of control systems and hardware. • Delivers better-integrated, initial designs that balance fuel economy, emissions, and drivability (FEED) requirements. • Provides common methods and tools for comparing/evaluating technologies. • Facilitates efficient, seamless linking from research to production to maximize reuse of work products and eliminate waste. The control system development process is represented in Figure 1. Figure 1. Control System Development Process In the system design phase, plant models are created that represent the dynamic behavior of the system, to evaluate its performance under a proposed control strategy. The plant models are then integrated with models of the controller hardware and algorithm software to provide a complete system simulation environment in which to perform the control design study. Traditional methods of developing control algorithms do not include interactions with other subsystems and components of the vehicle or powertrain. System Simulation A systems engineering approach calls for the entire system to be modeled, including plant, sensor/actuators, controller hardware, and algorithm/application software, as shown in Figure 2. Figure 2. System Model In many cases, although plant models are already available or can be readily developed, the control algorithm models are not all available, and the only representation of the algorithm functionality is contained in existing software. In these cases a full system simulation can be performed only when a complete software build has been created and loaded into the target embedded controller. Then the control algorithm software can be tested in a hardware-in-the-loop (HIL) system, where the controller and its application software is connected to a real-time computer system that runs a simulation of the plant model(s) representing the physical system with which the controller will eventually be used. This paper describes a methodology and set of tools that permit the above restriction to be circumvented. A system simulation can be constructed even when models of all the control algorithms are not available, thus yielding what may be referred to as a virtual HIL simulation. Developing a complete system simulation of an automotive application can be a challenging task. Complex plant models, models of sensors and actuators, algorithm models, and production software modules must be connected. Some of the subsystem blocks have hundreds of inputs and outputs, which makes manually connecting them a time-consuming and error-prone process. To obtain a complete system model the functionalities of all the control algorithms must be included—but in many cases all of the algorithm models are not available. For a system simulation to be effective and structured for the task at hand, users must be able to readily select the level of fidelity for each of the subsystem models. There also must be a mechanism to manage all of the artifacts of the system simulation, including the models themselves, initialization and calibration files to be used with the models, test cases and drive cycles used to exercise the system simulation, and results files. These artifacts also need to be configuration managed and version controlled. Challenges SOLUTION The challenges listed above were solved with a combination of the Autonomie software developed at Argonne National Laboratory and a unique software-in-the-loop (SIL) capability created at GM Powertrain Engineering. Autonomie was developed under a Cooperative Research and Development Agreement (CRADA) between the U.S. Department of Energy, General Motors (GM), and Argonne National Laboratory. Autonomie supports a plug-and-play modeling architecture that allows the user to select the appropriate level of fidelity for each model in the system. Autonomie also automatically interconnects the subsystem models that comprise the total system, and then builds the Simulink model needed to run the simulation. For the system simulation required to support control system design, an SIL block is included that incorporates a compiled version of the production software used in existing embedded controllers. The example given in this paper demonstrates the method for an engine control module. Autonomie Figure 3 shows the SIL-based system simulation in the Autonomie environment. Figure 3. Autonomie System Simulation Figure 4 shows the controller model structure and includes: • A block for the real-time operating system (RTOS) that schedules the execution of the tasks in the software and algorithm models • A Controller Area Network (CAN) communication block to supply serial data signals to the controller software • An algorithm model (AM) block that contains the AMs under development • An hardware I/O (HWIO) block that contains behavioral models of the HWIO functions in the controller Figure 4. Controller Blocks in Autonomie Once the user has configured the desired system model, a process is selected (Figure 5), which in this case builds the Simulink model, establishes the solver settings, initializes the model parameters, and sets up the model for the user to perform the algorithm development tasks. Figure 5. Process Selection User Interface in Autonomie The entire model is finally automatically built in Simulink, as shown in Figure 6. Figure 6. Simulink Model Built by Autonomie The control algorithm template subsystem in this model is initially a placeholder for the algorithm models to be developed by the user, as shown in Figure 7. Figure 7. Control Algorithm Template Subsystem Placeholder Using the Autonomie Utility functions, the user can populate the Control Algorithm Template subsystem with the algorithm model(s) to be developed, and interface the algorithm model to the rest of the simulation. The result of this operation appears in Figure 8. Figure 8. Control Algorithm Template Subsystem Populated With an Algorithm Model Now the user can work on the algorithm model in the context of a complete system simulation, and perform the appropriate development and testing tasks. The Autonomie software also includes utility functions to help manage the work products of the simulation. A picture of the Autonomie utility user interface is shown in Figure 9. Autonomie Utility Figure 9. Configuration Management Interface The left-hand pane of the utility interface provides an explorer view of the projects, folders, and files in the configuration management (CM) Synergy database used to provide CM of the models and associated files, as well as the folders and files on the user's hard drive. The center pane provides functions to permit the user to download/upload models, systems, and vehicle files from/to the database; select a library to be used with the Simulink model(s); validate a model for use in the Autonomie environment, which includes generation of an XML file describing the inputs, outputs, and parameters of the model; and manage the models saved on the user's hard drive. The right-hand pane of the utility provides the detailed functionality to perform the task that was selected in the center pane. GM has developed a proprietary process by which production source code can be brought into Simulink simply, robustly, and in a way that is easily repeatable. This process enables a control algorithm engineer to use existing production code in a model-based control design environment. As indicated earlier in this paper, development of control algorithms in the context of a complete system simulation enables an engineer to consider interactions among components, subsystems, and other algorithm functions, as well as the effects of part variation and implementation details such as data typing and operating system scheduling. Including existing production code in a Simulink model is not a simple task, considering the complexity of legacy code and the number of interconnections needed. The process developed by GM, and the model management and automated connection capabilities of Autonomie, eliminate the difficulties associated with this task. Software-in-the-Loop SIL Process The SIL process, which brings production source code into Simulink, consists of two subprocesses: a build process and a usage process. An overview of the SIL process is shown in Figure 10. The build process consists of processing source code through a set of utility programs that produce components consumed by the usage process. The build process is tightly integrated with GM Powertrain's software build environment. The software build environment is supported on a Linux platform. The usage process consists of using the components produced by the build process to bring compiled code into Simulink. The usage process is tightly integrated with GM Powertrain's model-based algorithm development environment. The modeling environment is supported on a Windows platform. XXXR_DE XXXR_DE Linux

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Hardware in Loop of a Generalized Predictive Controller for a Micro Grid DC System of Renewable Energy Sources

In this paper, a hardware in the loop simulation (HIL) is presented. This application is purposed as the first step before a real implementation of a Generalized Predictive Control (GPC) on a micro-grid system located at the Military University Campus in Cajica, Colombia. The designed GPC, looks for keep the battery bank State of Charge (SOC) over the 70% and under the 90%, what ensures the bes...

متن کامل

Model Based Design approach for Implementation of PHEV Energy Management

Hardware implementation of the Plug-in hybrid electric vehicles (PHEVs) control strategy is an important stage of the development of the vehicle electric control unit (ECU). This paper introduces Model-Based Design (MBD) approach for implementation of PHEV energy management. Based on this approach, implementation of the control algorithm on an electronic hardware is performed using automatic co...

متن کامل

Control of Flexible Link Robot using a Closed Loop Input-Shaping Approach

This paper is has addressed the Single Flexible Link Robot. The dynamical model is derived using Euler-Lagrange equation and then a proper controller is designed to suppress a  vibration based-on Input-Shaping (IS) method. But, IS control method is an open loop strategy. Due to the weakness of open loop control systems, a closed loop IS control system is proposed. The achieved closed loop c...

متن کامل

Voltage Regulation of DC-DC Series Resonant Converter Operating in Discontinuous Conduction Mode: The Hybrid Control Approach

Dynamic modeling and control of dc-dc series resonant converter (SRC) especially when operating in discontinuous conduction mode (DCM) is still a challenge in power electronics. Due to semiconductors switching, SRC is naturally represented as a switched linear system, a class of hybrid systems. Nevertheless, the hybrid nature of the SRC is commonly neglected and it is modeled as a purely contin...

متن کامل

Singular Perturbation Theory in Output Feedback Control of Pure-Feedback Systems

This paper studies output feedback control of pure-feedback systems with immeasurable states and completely non-affine property. Since availability of all the states is usually impossible in the actual process, we assume that just the system output is measurable and the system states are not available. First, to estimate the immeasurable states a state observer is designed. Relatively fewer res...

متن کامل

Adaptive Approximation-Based Control for Uncertain Nonlinear Systems With Unknown Dead-Zone Using Minimal Learning Parameter Algorithm

This paper proposes an adaptive approximation-based controller for uncertain strict-feedback nonlinear systems with unknown dead-zone nonlinearity. Dead-zone constraint is represented as a combination of a linear system with a disturbance-like term. This work invokes neural networks (NNs) as a linear-in-parameter approximator to model uncertain nonlinear functions that appear in virtual and act...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010